//
//  ElementRouteHandler.m
//  JavaScriptAndObjectiveC
//
//  Created by 刘红武 on 2018/6/13.
//  Copyright © 2018年 huangyibiao. All rights reserved.
//

#import "ElementRouteHandler.h"

@implementation ElementRouteHandler
+(void)load {
    [[KBRouter shard] registerHandler:[[ElementRouteHandler alloc] init] forRoute:@"ElementRouteHandler"];
}
- (void)RealHappenWithParams:(NSMutableDictionary *)param {
    
    NSString *service = param[@"service"];//处理器
    NSString *action = param[@"action"];  //响应
    NSString *pam = param[@"param"];   //参数
    NSString *successCallback = param[@"successCallback"];  //成功回调
    NSString *errorCallback = param[@"errorCallback"];    //失败回调
    
    if ([action isEqualToString:@"pushIvew"]) {
        NSLog(@"第二个响应器");
    }else if ([action isEqualToString:@"login"]) {
        
        
    }else if ([action isEqualToString:@"seting"]) {
        
        
    }
    
}

@end
